<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="./js/vue.js"></script>
<body>
    <div class="box">
        <ul>
            <li v-for='(item,index) in list' :key='index'>
                {{index}}---{{item.id}}---{{item.name}}
            </li>
        </ul>
    </div>
    <script>
        let vm = new Vue({
            el:'.box',
            data:{
                list:[{id:'01',name:'苹果'},{id:'02',name:'香蕉'},{id:'03',name:'葡萄'},{id:'04',name:'红豆'},{id:'05',name:'芒果'}],
            }
        })
    </script>
</body>
</html>